package com.hjc.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

/**
 * @author hjc-YYDS
 * @date 2024/3/5 10:59
 */
@Data
public class User {
    //姓名，性别，生日，邮箱，积分
    @ExcelProperty(value = "昵称")
    private String name;

    @ExcelProperty(value = "性别")
    private String gender;

    @DateTimeFormat(value = "yyyy年MM月dd日")
    @ExcelProperty(value = "生日")
    private String birthday;

    @ExcelProperty(value = "邮箱")
    private String email;

    @ExcelProperty(value = "积分")
    private int score;

    //将小数转换为百分数
    //@NumberFormat(value = "#.##%")
    //private String rank;
}
